package com.yc.rh.entities;

import java.io.Serializable;

public class BigFlvInfo implements Serializable {
	
	private static final long serialVersionUID = 1L;
	private int bid; 
	private String bname;
	private String bimg;
	private String bdate;
	private String text1;
	private String text2;
	private String text3;
	public int getBid() {
		return bid;
	}
	public void setBid(int bid) {
		this.bid = bid;
	}
	public String getBname() {
		return bname;
	}
	public void setBname(String bname) {
		this.bname = bname;
	}
	public String getBimg() {
		return bimg;
	}
	public void setBimg(String bimg) {
		this.bimg = bimg;
	}
	public String getBdate() {
		if(bdate!=null && bdate.contains(".")){
			bdate=bdate.substring(0, bdate.indexOf("."));
		}
		return bdate;
	}
	public void setBdate(String bdate) {
		this.bdate = bdate;
	}
	public String getText1() {
		return text1;
	}
	public void setText1(String text1) {
		this.text1 = text1;
	}
	public String getText2() {
		return text2;
	}
	public void setText2(String text2) {
		this.text2 = text2;
	}
	public String getText3() {
		return text3;
	}
	public void setText3(String text3) {
		this.text3 = text3;
	}
	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((bdate == null) ? 0 : bdate.hashCode());
		result = prime * result + bid;
		result = prime * result + ((bimg == null) ? 0 : bimg.hashCode());
		result = prime * result + ((bname == null) ? 0 : bname.hashCode());
		result = prime * result + ((text1 == null) ? 0 : text1.hashCode());
		result = prime * result + ((text2 == null) ? 0 : text2.hashCode());
		result = prime * result + ((text3 == null) ? 0 : text3.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		BigFlvInfo other = (BigFlvInfo) obj;
		if (bdate == null) {
			if (other.bdate != null)
				return false;
		} else if (!bdate.equals(other.bdate))
			return false;
		if (bid != other.bid)
			return false;
		if (bimg == null) {
			if (other.bimg != null)
				return false;
		} else if (!bimg.equals(other.bimg))
			return false;
		if (bname == null) {
			if (other.bname != null)
				return false;
		} else if (!bname.equals(other.bname))
			return false;
		if (text1 == null) {
			if (other.text1 != null)
				return false;
		} else if (!text1.equals(other.text1))
			return false;
		if (text2 == null) {
			if (other.text2 != null)
				return false;
		} else if (!text2.equals(other.text2))
			return false;
		if (text3 == null) {
			if (other.text3 != null)
				return false;
		} else if (!text3.equals(other.text3))
			return false;
		return true;
	}
	@Override
	public String toString() {
		return "BigFlvInfo [bid=" + bid + ", bname=" + bname + ", bimg=" + bimg
				+ ", bdate=" + bdate + ", text1=" + text1 + ", text2=" + text2
				+ ", text3=" + text3 + "]";
	}
	public BigFlvInfo(int bid, String bname, String bimg, String bdate,
			String text1, String text2, String text3) {
		super();
		this.bid = bid;
		this.bname = bname;
		this.bimg = bimg;
		this.bdate = bdate;
		this.text1 = text1;
		this.text2 = text2;
		this.text3 = text3;
	}
	public BigFlvInfo() {
		super();
	}
	
	
}
